import requests


class LoginAPI:

    def __init__(self):
        self.url = "http://ihrm-test.itheima.net/api/sys/login"

    def login(self,login_data):
        print(login_data)
        return requests.post(url=self.url,json=login_data)